<?php if($_SESSION['user_login'] !== md5($ver['username'].$ver['password'].LOGIN_PROTTY) || empty($_SESSION['user_login']) || empty($_SESSION['id']) || empty($_SESSION['nickname'])) header("location:../admin")?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>POCENT文章开放系统  - 后台管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="protty">

    <link href="Delivery/css/bootstrap.css" rel="stylesheet">
	<link href="Delivery/css/site.css" rel="stylesheet">
    <link href="Delivery/css/bootstrap-responsive.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="../">后台管理</a>
          <div class="btn-group pull-right">
			<a class="btn" href="?c=my"><i class="icon-user"></i> <?php echo $ver['nickname'];?></a>
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"  style="height: 18px;">
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
			  <li><a href="?c=my">个人设置</a></li>
              <li class="divider"></li>
              <li><a href="?c=out">安全退出</a></li>
            </ul> 
          </div>
          <div class="nav-collapse">
            <ul class="nav">
			<li><a href="?c=index">仪表盘</a></li>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">文章管理 <b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a href="?c=add_page">创建文章</a></li>
					<li class="divider"></li>
					<li><a href="?c=art">文章列表</a></li>
				</ul>
			  </li>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">分类管理 <b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a href="?c=add_ify">添加分类</a></li>
					<li class="divider"></li>
					<li><a href="?c=ify">分类列表</a></li>
				</ul>
			  </li>
			  <li><a href="http://www.pocent.com" target="_blank">API</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header"><i class="icon-wrench"></i> 内容管理</li>
              <li <?php echo $_GET['c'] == 'art' ? 'class="active"' :''?>><a href="?c=art">文章列表</a></li>
              <li <?php echo $_GET['c'] == 'ify' ? 'class="active"' :''?>><a href="?c=ify">分类列表</a></li>
              <li <?php echo $_GET['c'] == 'mss' ? 'class="active"' :''?>><a href="?c=mss">评论功能</a></li>
              <li <?php echo $_GET['c'] == 'talk' ? 'class="active"' :''?>><a href="?c=talk">每日心情</a></li>
              <li <?php echo $_GET['c'] == 'msg' ? 'class="active"' :''?>><a href="?c=msg">留言管理</a></li>
              <li class="nav-header"><i class="icon-film"></i> 资源管理</li>
              <li <?php echo $_GET['c'] == 'upload' ? 'class="active"' :''?>><a href="?c=upload">文件上传</a></li>
              <li class="nav-header"><i class="icon-user"></i> 网站管理</li>
               <li <?php echo $_GET['c'] == 'template' ? 'class="active"' :''?>><a href="?c=template">模板设置</a></li>
              <li <?php echo $_GET['c'] == 'my' ? 'class="active"' :''?>><a href="?c=my">个人设置</a></li>
              <li <?php echo $_GET['c'] == 'link' ? 'class="active"' :''?>><a href="?c=link">友情链接</a></li>
              <li <?php echo $_GET['c'] == 'site' ? 'class="active"' :''?>><a href="?c=site">全局配置</a></li>
			  <li><a href="?c=out">安全退出</a></li> 
            </ul>
          </div>
        </div>